<%@ page language="java" pageEncoding="UTF-8"%>

<%@ taglib uri="http://struts.apache.org/tags-bean" prefix="bean"%>
<%@ taglib uri="http://struts.apache.org/tags-html" prefix="html"%>
<%@ taglib uri="http://struts.apache.org/tags-logic" prefix="logic"%>
<%@ taglib uri="http://struts.apache.org/tags-tiles" prefix="tiles"%>
<%@ taglib uri="http://java.sun.com/jstl/core_rt" prefix="c"%>

		<table class="table3">
			<tr>
				<td colspan="5"><input type="checkbox" onclick="selectAll('id',this.checked)" />全选</td>
			</tr>
			<c:set var="i" value="0"></c:set>
			<logic:iterate id="albumForm" name="albumFormList">
				<c:if test="${i%6==0}">
					<%="<tr>" %>
				</c:if>
				<c:if test="${i%6==5}">
					<%="</tr>" %>
				</c:if>
				<td width="16.5%" align="center">
					<html:link action="album_photo.do?method=getAlbumPhotosByPage&albumId=${albumForm.id}&searchFlag=1">
						<logic:empty name="albumForm" property="coverUrl">
							无相册封面
						</logic:empty>
						<logic:notEmpty name="albumForm" property="coverUrl">
							<img src="<%=request.getContextPath()%>${albumForm.coverUrl}" alt="${albumForm.des}" width="100" />
						</logic:notEmpty>
					</html:link>
					<br />
					<html:checkbox property="id" value="${albumForm.id}">
						${albumForm.name}
					</html:checkbox>
				</td>
				<c:set var="i" value="${i+1}"></c:set>
			</logic:iterate>
			<c:forEach var="i" begin="${i}" end="6" step="1">
				<%="<td width=\"16.5%\" align=\"center\">&nbsp;</td>" %>
			</c:forEach>
			<%="</tr>" %>
		</table>